package cn.tedu.live8.controller;

import cn.tedu.live8.entity.Lbt;
import cn.tedu.live8.entity.LbtVO;
import cn.tedu.live8.entity.TpVO;
import cn.tedu.live8.mapper.IndexMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class IndexController {
    @Autowired(required = false)
    IndexMapper mapper;
    @RequestMapping("/lbt/select")
    public List<LbtVO> select(){return mapper.select();}
    @RequestMapping("/lbt/insert")
    public void insert(String url){
        mapper.insert(url);
    }



}
